package com.xingkeduo.business.order.controller;

import com.xingkeduo.business.order.service.OperateService;
import com.xingkeduo.dto.param.HairstyleDetailParameterDto;
import com.xingkeduo.dto.param.HairstyleSelectedParameterDto;
import com.xingkeduo.dto.transter.hairstyleDetails.HairstyleDetail;
import com.xingkeduo.dto.transter.hairstyleSelected.HairstyleSelect;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
@RequestMapping("/operate")
public class OperateController {

     @Resource
     private OperateService operateService;

    /**
     * 获取发型列表   弃用  已移至TransterController
     * @param
     * @return
     */
    @GetMapping("/hairstyle_list")
    public HairstyleSelect getHairstyleList(HairstyleSelectedParameterDto hairstyleSelectedParameterDto){
        HairstyleSelect hairstyleSelect = operateService.getHairstyleList(hairstyleSelectedParameterDto);
        return hairstyleSelect;
    }
    /**
     * 获取发型详情  弃用  已移至TransterController
     * @param
     * @return
     */
    @GetMapping("/hairstyle_detail")
    public HairstyleDetail getHairstyleDetail(HairstyleDetailParameterDto hairstyleDetailParameterDto){
        HairstyleDetail hairstyleDetail = operateService.getHairstyleDetail(hairstyleDetailParameterDto);
        return hairstyleDetail;
    }



}
